<template>
  <div class="hello">
    <nav>
      <router-link to="/home/index">首页</router-link> |
      <router-link to="/home/home_type">房间类型</router-link>
    </nav>
    <button @click="loginout">退出</button>
    <!-- <h1>{{ msg }}</h1> -->
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  methods:{
    loginout(){
       this.$router.push("/login")
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello{
display: flex;
align-items: center;
justify-content: center;
}
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
